package com.joshluisaac.jacksonlearning;

import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;

/*
 * Create a POJO class
 * A user object, initialized with some values. Later use Jackson to convert this object to / from JSON.
 */

public class User {

	private String email = "joshluisaac@gmail.com";
	private String firstName = "Joshua";
	private String lastName = "Luisaac";
	private int age = 29;
	String[] message = { "First Message", "Second Message", "Third Message" };
	List<String> messages = new LinkedList<String>(Arrays.asList(message));

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public List<String> getMessages() {
		return messages;
	}

	public void setMessages(List<String> messages) {
		this.messages = messages;
	}

	@Override
	public String toString() {
		return "User [email=" + email + ", firstName=" + firstName
				+ ", lastName=" + lastName + ", age=" + age + ", messages="
				+ messages + "]";
	}

	public static void main(String[] args) {
		User u = new User();
		System.out.println(u.toString());
	}

}
